package com.henry.javastudy.c04;

public class MyRunnable implements Runnable {
    private int result=0;
    @Override
    public void run() {
        try {
            setResult(MyCanculate.sum());
            System.out.println("run task in MyRunnable");
        }catch(Exception e){

        }
    }
    public void setResult(Integer i){
        result=i;
    }
    public int getResult()
    {
        return result;
    }
}
